#include "light.h"

using namespace PBVP;

// default light
Light::Light()
: m_Ambient(Color::COLOR_BLACK),
m_Diffuse(Color::COLOR_SLATE_GRAY),
m_Specular(Color::COLOR_WHITE),
m_Position(0.0f, 0.0f, 1.0f, 1.0f)
{
	m_IsOn = true;
}

Light::Light(const Light& lit)
: m_Ambient(lit.m_Ambient),
m_Diffuse(lit.m_Diffuse),
m_Specular(lit.m_Specular),
m_Position(lit.m_Position),
m_IsOn(lit.m_IsOn)
{
	
}

Light& Light::operator = (const Light &lit)
{
	if(this == &lit) return *this;
	m_Ambient = lit.m_Ambient;
	m_Diffuse = lit.m_Diffuse;
	m_Specular = lit.m_Specular;
	m_Position = lit.m_Position;
	m_IsOn = lit.m_IsOn;
	return *this;
}
